package com.lqd.mall.interaction.system;

import com.lqd.mall.interaction.annotation.Excel;
import com.lqd.mall.interaction.basis.BasisEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 字典数据表 sys_dict_data
 * 
 * @author ruoyi
 */
@Setter
@Getter
@Entity
@Table(name = "sys_dict_data")
public class SysDictDataEntity extends BasisEntity
{
    private static final long serialVersionUID = 1L;

    /** 字典编码 */
    @Id
    @Column(name = "dict_code")
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    @Excel(name = "字典编码", cellType = Excel.ColumnType.NUMERIC)
    private Long dictCode;

    /** 字典排序 */
    @Column(name = "dict_sort")
    @Excel(name = "字典排序", cellType = Excel.ColumnType.NUMERIC)
    private Long dictSort;

    /** 字典标签 */
    @Excel(name = "字典标签")
    @Column(name = "dict_label")
    private String dictLabel;

    /** 字典键值 */
    @Excel(name = "字典键值")
    @Column(name = "dict_value")
    private String dictValue;

    /** 字典类型 */
    @Excel(name = "字典类型")
    @Column(name = "dict_type")
    private String dictType;

    /** 样式属性（其他样式扩展） */
    @Column(name = "css_class")
    private String cssClass;

    /** 表格字典样式 */
    @Column(name = "list_class")
    private String listClass;

    /** 是否默认（Y是 N否） */
    @Column(name = "is_default")
    @Excel(name = "是否默认", readConverterExp = "Y=是,N=否")
    private String isDefault;

    /** 状态（0正常 1停用） */
    @Column(name = "status")
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;


}
